package com.coldchain.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.coldchain.common.msg.ObjectRestResponse;
import com.coldchain.order.entity.CreditOrder;

import java.util.List;

/**
 * <p>
 * 企业结算订单 服务类
 * </p>
 *
 * @author fangliai
 * @since 2018-09-25
 */
public interface ICreditOrderService extends IService<CreditOrder> {
	/**
	 * 显示结算订单
	 * @param page
	 * @param creditOrder
	 * @return
	 */
	public  IPage<CreditOrder> queryList(Page<CreditOrder> page,CreditOrder creditOrder);
	/**
	 * 更新结算状态
	 * @param creditId
	 * @return
	 */
	public ObjectRestResponse<String> updateStatus(String creditId, String userId);
	
	/**
	 * 显示结算订单
	 * @param creditOrder
	 * @return
	 */
	public ObjectRestResponse<List<CreditOrder>> queryList(String starttime,String endtime,Integer datatype,String user,String status);
}
